using System;
using System.Collections.Generic;
using System.Text;
using FireStarterModeller.BO;
using FireStarterModeller.Test.BO;
using FireStarterModeller.UI;
using Habanero.Faces.Base;
using Habanero.Faces.Win;
using NUnit.Framework;

namespace FireStarterModeller.Test.UI
{
    [TestFixture]
    public class TestMainControl 
    {
//        [TestFixtureSetUp]
//        public void SetupFixture()
//        {
//            UITestUtils.SetupFixture();
//        }
//
//
//        [SetUp]
//        public virtual void SetupTest()
//        {
//            UITestUtils.SetupTest();
//
//        }
//
//        [Test]
//        public void TestSetProjectInfo()
//        {
//            //---------------Set up test pack-------------------
//            DMSolution dmSolution = TestUtilsShared.CreateSavedDMSolution();
//            MainControl control =
//                new MainControl(new ControlFactoryWin());
//            //---------------Assert Precondition----------------
//
//            //---------------Execute Test ----------------------
//            control.Solution = dmSolution;
//            //---------------Test Result -----------------------
//            Assert.AreSame(dmSolution, control.Solution);
//        }
//
//        [Test]
//        public void TestDisabledAtCreation()
//        {
//            //---------------Execute Test ----------------------
//            MainControl control =
//                new MainControl(new ControlFactoryWin());
//            //---------------Test Result -----------------------
//
//            Assert.IsFalse(control.Enabled);
//        }
//
//        [Test]
//        public void TestSetEnables()
//        {
//            //---------------Set up test pack-------------------
//            DMSolution dmSolution = TestUtilsShared.CreateSavedDMSolution();
//            MainControl control =
//                new MainControl(new ControlFactoryWin());
//            //---------------Execute Test ----------------------
//            control.Solution = dmSolution; 
//            //---------------Test Result -----------------------
//            Assert.IsTrue(control.Enabled);
//        }
//
//        [Test]
//        public void TestSetToNullDisables()
//        {
//            //---------------Set up test pack-------------------
//            DMSolution dmSolution = TestUtilsShared.CreateSavedDMSolution();
//            MainControl control =
//                new MainControl(new ControlFactoryWin());
//            control.Solution = dmSolution; 
//            //---------------Execute Test ----------------------
//            control.Solution = null;
//            //---------------Test Result -----------------------
//            Assert.IsFalse(control.Enabled);
//
//        }
//
//        [Test]
//        public void TestBusinessObjectSelected_SetsBusinessObjectOnPropertyControl()
//        {
//            //---------------Set up test pack-------------------
//            DMClass info = TestUtilsShared.CreateSavedDMClass();
//            MainControl mainControl = new MainControl(new ControlFactoryWin());
//            mainControl.Solution = info.Solution;
//            //---------------Execute Test ----------------------
//            mainControl.DMSolutionControl.Class = info;
//            //---------------Test Result -----------------------
//            Assert.AreSame(info, mainControl.DMPropertyAndRuleEditorControl.Class);
//        }
//
//        [Test]
//        public void TestBusinessObjectSelected_SetsBusinessObjectOnRelationshipsControl()
//        {
//            //---------------Set up test pack-------------------
//            DMClass info = TestUtilsShared.CreateSavedDMClass();
//            MainControl mainControl = new MainControl(new ControlFactoryWin());
//            mainControl.Solution = info.Solution;
//            //---------------Execute Test ----------------------
//            mainControl.DMSolutionControl.Class = info;
//            //---------------Test Result -----------------------
//            Assert.AreSame(info, mainControl.DMRelationshipsControl.Class);
//        }
//
//        [Test]
//        public void TestBusinessObjectSelected_SetsBusinessObjectOnUniqueConstraintsControl()
//        {
//            //---------------Set up test pack-------------------
//            DMClass info = TestUtilsShared.CreateSavedDMClass();
//            MainControl mainControl = new MainControl(new ControlFactoryWin());
//            mainControl.Solution = info.Solution;
//            //---------------Execute Test ----------------------
//            mainControl.DMSolutionControl.Class = info;
//            //---------------Test Result -----------------------
//            Assert.AreSame(info, mainControl.UniqueConstraintInfosControl.Class);
//        }
//
//        [Test]
//        public void TestBusinessObjectSelected_SetsBusinessObjectOnUIInfoControl()
//        {
//            //---------------Set up test pack-------------------
//            DMClass info = TestUtilsShared.CreateSavedDMClass();
//            MainControl mainControl = new MainControl(new ControlFactoryWin());
//            mainControl.Solution = info.Solution;
//            //---------------Execute Test ----------------------
//            mainControl.DMSolutionControl.Class = info;
//            //---------------Test Result -----------------------
//            Assert.AreSame(info, mainControl.UIInfoControl.Class);
//        }
    }
}
